Use infos from search engine instead of getting them again
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jun 2015 19:18:30 +0000 (15:18 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jun 2015 19:20:06 +0000 (15:20 -0400)
commit1d63335c8e51aee978521afdc77880a912b9f743
treede139f408aba423b3ce205d2e8c5f1e56db07b4b
parent1b755c546e5ab0693ae921f7febc1c8bb439193f
Use infos from search engine instead of getting them again

When the search engine provides hits with GFileInfo, use that
to add the hits to the model directly, without going through
another round of async get_info calls.

To do this, we add a batched variant of the
_gtk_file_system_model_update_file call that takes lists of
GFiles and GFileInfos. Again, we can avoid repeated resorting
that happens when the files are updated individually.
gtk/gtkfilechooserwidget.c
gtk/gtkfilesystemmodel.c
gtk/gtkfilesystemmodel.h